﻿using System.Collections.Generic;
using Bdcs.Application.Mappers.Dto;
using Bdcs.Core.Entity;
using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure;

namespace Bdcs.Application.Services.IServices
{
    public interface IUserService
    {
        /// <summary>
        /// 全部用户
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public PagedList<UserDto> List(int pageIndex, int pageSize);

        /// <summary>
        /// 新增/更新用户
        /// </summary>
        /// <param name="userInput"></param>
        /// <returns></returns>
        public int Add(UserInput userInput);

        /// <summary>
        /// 更改用户所属公司
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="companyId"></param>
        /// <returns></returns>
        public int UpdateCompanyChoose(string userid,string companyIds);

        /// <summary>
        /// 判断是否已经存在了该用户
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public int GetIsExist(string userId);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        public Adv_UserInfoMod Delete(string userId);
    }
}